package com.sqly.doc.util;

import java.text.SimpleDateFormat;
import java.util.Locale;

public final class Constants {
    public static final String UPLOAD_IMAGE = "upload_image_uri";
    public static final String LXDH_OLD_REGEXP = "^((0\\d{2,3}-\\d{7,8})|(1[3456789]\\d{9}))$";
    public static final String LXDH_REGEXP = "^([1]\\d{10}|([\\(（]?0[0-9]{2,3}[）\\)]?[-]?)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?)$";
//    public static final String LXDH_All_REGEXP = "((\\d{11})|^((\\d{7,8})|(\\d{4}|\\d{3})-(\\d{7,8})|(\\d{4}|\\d{3})-(\\d{7,8})-(\\d{4}|\\d{3}|\\d{2}|\\d{1})|(\\d{7,8})-(\\d{4}|\\d{3}|\\d{2}|\\d{1}))$)";
    public static final String LXDH_All_REGEXP = "^((\\d{11})|^((\\d{7,8})|(\\d{4}|\\d{3})-(\\d{7,8})|(\\d{4}|\\d{3})-(\\d{7,8})-(\\d{4}|\\d{3}|\\d{2}|\\d{1})|(\\d{7,8})-(\\d{4}|\\d{3}|\\d{2}|\\d{1}))$)$";
    public static final String PHONE_REGEXP = "^(\\(\\d{3,4}-)|\\d{3.4}-)?\\d{7,8}$";
    public static final String MOBILE_REGEXP = "^1\\d{10}$";
    public static final String SFZH_REGEXP = "(^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{2}[0-9Xx]$)";
    public static final String ZZS_XS_REGEXP = "^(([^0][0-9]+|0)\\.([0-9]{1,2})$)|^(([^0][0-9]+|0)$)|^(([1-9]+)\\.([0-9]{1,2})$)|^(([1-9]+)$)";//正整数或小数（2位）
    public static final String ZZS_YWXS_REGEXP = "^(([^0][0-9]+|0)\\.([0-9]{1})$)|^(([^0][0-9]+|0)$)|^(([1-9]+)\\.([0-9]{1})$)|^(([1-9]+)$)";//正整数或小数（1位）
    public static final String ZZS_REGEXP = "^(([^0][0-9]+|0)$)|^(([1-9]+)$)";//正整数
    public static final String XS_REGEXP = "^((([^0][0-9]+|0)\\.([0-9]{1,2}))$)|^(([1-9]+)\\.([0-9]{1,2})$)";//2位小数

}
